				<!-- Start: box Picture -->
                <li>
                    <div class="my-box">
                        <div class="top">
                            <div class="float-left"><img src="<?php echo EVENT_STATIC_SERVER;?>/images/bulletExpand.jpg" alt="Expand" id="t-picture" onclick="ShowHideArea('t-picture')"/><span>Ảnh</span></div>
                        </div>
                        <div id="picture" class="content">
                            <div class="thongKe"> <span><?php echo $this->totalEventPhoto;?> Album</span> 
                            <a href="/event/photo/<?php echo $this->eid;?>">Xem tất cả</a>
                            <?php if($this->isCanAdd){?>
                            <a href="/event/photo/add/<?php echo $this->eid;?>" style="margin-right:5px;">Thêm ảnh</a>
                            <?php }?>
                                <div class="clear"></div>
                            </div>
                            <div class="my-itemWrap">
                            <?php 
                            for($i=0; $i<3 && $i < count($this->photos) ; $i++){
                            	$photo = $this->photos[$i];
                            	$imgPreview = EVENT_STATIC_SERVER.'/images/nophoto.gif';
                            	if($photo->thumbnail != ""){
                                    if(isset($photo->img_server) && $photo->img_server != ''){
                                        $imgPreview = 'http://img'.($photo->img_server>1?$photo->img_server:'').".tamtay.vn/".$photo->thumbnail;
                                    }
                                    else
                            		    $imgPreview = EVENT_IMG_SERVER."/".$photo->thumbnail;
                            	}
                            	
                            ?>
                                <div class="my-item"> <a href="http://photo.tamtay.vn/photo/view/<?php echo $photo->aid;?>"><img class="image" src="<?php echo $imgPreview;?>" width="75" alt="" title=""/></a>
                                    <div class="text"> <a href="http://photo.tamtay.vn/photo/view/<?php echo $photo->aid;?>"><?php echo $photo->album_name;?></a><br />
                                        <span>(<?php echo date('d/m/Y', $photo->created);?>)</span> </div>
                                    <div class="clear"></div>
                                </div>
                            <?php }?>
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                </li>
                <!-- End: box Picture -->